﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace theseaturtlestore
{
    public partial class Turtle_Outreach : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {


            bp.BusinessLogic.Mail mail = new bp.BusinessLogic.Mail();
            //Confirmation page that will be sent to the user
            string msg = mail.SendMail(Server.MapPath("ContactConfirmation.html"), "mail.bpwe.net", "savetheseaturtle@yahoo.com", dfsEmail.Text,
                                      "root@bpwe.net", "Nv4c7df7", "Thank You For Supporting NATIONAL SAVE THE SEA TURTLE FOUNDATION", dfsName.Text, "",
                                      "", Guid.NewGuid(), "", "", "");



            //notification page
            mail.SendMail(Server.MapPath("ContactNotification.html"), "mail.bpwe.net", dfsEmail.Text, "savetheseaturtle@yahoo.com",
            "root@bpwe.net", "Nv4c7df7", "Turtle Outreach Notification", "NATIONAL SAVE THE SEA TURTLE FOUNDATION", "",


           dfsName.Text + "<br/>" + "Address: " + dfsAddress.Text + "<br/>" + " City: " + dfsCity.Text + "<br/>" + "State:" + StateList.Text + "Country" + CountryList1.Text + "<br/>" + "Zip Code:" + dsfZip.Text + "<br/>" + "Phone Number:" + dfsPhone.Text + "<br/>" + "Email Address" + dfsEmail.Text + "<br/>" + "Friend Name:" + dfsFriend.Text + "<br/>" + "Friend Address:" + dfsFriendAddress.Text + "<br/>" + "Friend City:" + dfsFriendCity.Text + "<br/>" + "Friend State:" + FriendStateList.Text + "<br/>" + "Country" + CountryList2.Text + "<br/>" + "Friend Zip Code" + dfsFriendZip.Text + "<br/>" + "My Phone" + dfsMyPhone.Text + "<br/>" + "My Email:" + dfsMyEmail.Text + "<br/>" + "This gift is from :" + "<br/>" + dfsGiftFrom.Text, Guid.NewGuid(), "", "", "");

            Response.Redirect("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=52QMMFFJY3HCE");


        }

        protected void btnSubmitFriend_Click(object sender, EventArgs e)
        {
            bp.BusinessLogic.Mail mail = new bp.BusinessLogic.Mail();
            //Confirmation page that will be sent to the user
            string msg = mail.SendMail(Server.MapPath("ContactConfirmation.html"), "mail.bpwe.net", "savetheseaturtle@bellsouth.net", dfsEmail.Text,
                                      "root@bpwe.net", "Nv4c7df7", "Thank You For Supporting NATIONAL SAVE THE SEA TURTLE FOUNDATION", dfsName.Text, "",
                                      "", Guid.NewGuid(), "", "", "");



            //notification page
            mail.SendMail(Server.MapPath("ContactNotification.html"), "mail.bpwe.net", dfsEmail.Text, "savetheseaturtle@bellsouth.net",
            "root@bpwe.net", "Nv4c7df7", "Turtle Outreach Notification", "NATIONAL SAVE THE SEA TURTLE FOUNDATION", "",


           dfsName.Text + "<br/>" + "Address: " + dfsAddress.Text + "<br/>" + " City: " + dfsCity.Text + "<br/>" + "State:" + StateList.Text + "Country" + CountryList1.Text + "<br/>" + "Zip Code:" + dsfZip.Text + "<br/>" + "Phone Number:" + dfsPhone.Text + "<br/>" + "Email Address" + dfsEmail.Text + "<br/>" + "Friend Name:" + dfsFriend.Text + "<br/>" + "Friend Address:" + dfsFriendAddress.Text + "<br/>" + "Friend City:" + dfsFriendCity.Text + "<br/>" + "Friend State:" + FriendStateList.Text + "<br/>" + "Country" + CountryList2.Text + "<br/>" + "Friend Zip Code" + dfsFriendZip.Text + "<br/>" + "My Phone" + dfsMyPhone.Text + "<br/>" + "My Email:" + dfsMyEmail.Text + "<br/>" + "This gift is from :" + "<br/>" + dfsGiftFrom.Text, Guid.NewGuid(), "", "", "");

            Response.Redirect("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=52QMMFFJY3HCE");
        }
    }
}